package StudyCode.summary.mydatetime;

import java.time.ZonedDateTime;
import java.util.GregorianCalendar;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ZonedDateTimeToGregorianCalendar {
	public static void main(String[] args) {
		ZonedDateTime zonedDateTime = ZonedDateTime.now();
		System.out.println("ZonedDateTime: " + zonedDateTime);
		GregorianCalendar gregorianCalendar = GregorianCalendar.from(zonedDateTime);
		System.out.println("ZonedDateTime 转为 GregorianCalendar: " + gregorianCalendar.getTime());
	}
}
